package gmusic.command;

import gmusic.bo.PaysBean;
import gmusic.services.impl.GMusicServicesImpl;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

public class AfficherFormAjoutArtistGM implements Command {

	// private final static Logger log =
	// Logger.getLogger(AfficherFormAjoutArtistGM.class);

	public String execute(HttpServletRequest req) throws Exception {

		HttpSession session = req.getSession();
		List<PaysBean> pays = GMusicServicesImpl.getInstance().getAllPays();

		session.setAttribute("pays", pays);

		return "/ajouterArtist.jsp";
	}
}
